package com.chzc.fm.duotin.bean.channel;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/28.
 */
public class HotChannel {

    /**
     * id : 78641
     * play_num : 27491652
     * title : 罗辑思维
     * image_url : http://c3.duotin.com/i1/DT/lUwXHRdQrDPKyljS0ModVkpuwQD3afiEBq9_03SovS8.jpg
     * describe : 罗振宇的个人视频脱口秀。罗胖读书，讲给您听。我们在知识中寻找独立的见识，您在把玩知识中寻找思维的乐趣。我们的口号是，死磕自己，愉悦大家。
     * content_num : 185
     * tag_image_url :
     */

    private String id;
    private String play_num;
    private String title;
    private String image_url;
    private String describe;
    private String content_num;
    private String tag_image_url;

    public static HotChannel objectFromData(String str) {

        return new Gson().fromJson(str, HotChannel.class);
    }

    public static List<HotChannel> arrayHotChannelFromData(String str) {

        Type listType = new TypeToken<ArrayList<HotChannel>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPlay_num() {
        return play_num;
    }

    public void setPlay_num(String play_num) {
        this.play_num = play_num;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getContent_num() {
        return content_num;
    }

    public void setContent_num(String content_num) {
        this.content_num = content_num;
    }

    public String getTag_image_url() {
        return tag_image_url;
    }

    public void setTag_image_url(String tag_image_url) {
        this.tag_image_url = tag_image_url;
    }
}
